<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>云盘首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/dist/css/layui.css"  media="all">
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript">
        $("#updatePassword").click(function () {
            layer.alert('密码修改成功，请返回登录', {
                skin: 'layui-layer-lan'
                ,closeBtn: 0
                ,anim: 4 //动画类型
            });
        });
    </script>
</head>
<body>

<div style="margin: 0 auto; width:60%">
    <form class="layui-form" action="updatePassword" lay-filter="example">
        <h1 style="color: #1E9FFF;text-align: center;margin-top: 100px;margin-bottom: 50px">密码修改</h1>

        <div class="layui-form-item">
            <label class="layui-form-label">用户名：</label>
            <div class="layui-input-block">
                <input type="text" name="username" id="username" lay-verify="title" autocomplete="off" placeholder="请输入用户名" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">新密码：</label>
            <div class="layui-input-block">
                <input type="text" name="password" id="password" lay-verify="title" autocomplete="off" placeholder="请输入新密码" class="layui-input">
            </div>
        </div>
        <p style="height: 50px; text-align: center"> <span id="msg"></span></p>
        <div class="layui-form-item" style="text-align: center">
            <div class="">
                <button type="submit" class="layui-btn" lay-submit="" id="updatePassword" lay-filter="demo1">立即修改</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>